﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Bookkeeping.Core.Entities;

namespace Bookkeeping.Mvc.Extensions
{
    public static class TagExtensions
    {
        public static string ToSpaceSeparatedString(this IEnumerable<Tag> tags)
        {
            string flatString = "";

            foreach (var tag in tags)
                flatString += tag.Name + " ";

            return flatString.Trim();
        }
    }
}
